package hello;

import java.util.Date;

import auction.chapter12.Auditable;

public class Message2 implements Auditable
{
	private Long id;
	private String text;
	private Date birthday;
	private Integer rank;
	private Address address;
	
	public void setAddress(Address a)
	{
		address=a;
	}
	
	public Address getAddress()
	{
		return address;
	}
	
	Message2()
	{
	}
	//@Target(value=ElementType.METHOD)
	public Message2(String text)
	{
		this.text=text;
	}
	
	public Long getId()
	{
		return id;
	}
	
	public void setId(Long id)
	{
		this.id=id;
	}
	
	public String getText()
	{
		return text;
	}
	
	/** Private */
	public void setText(String text)
	{
		//System.out.println("### enter setText()");
		this.text=text;
		//System.out.println("### left setText()");
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}
	
	
	
}		
		
		